package com.pug.mapper.hotel;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pug.pojo.Hotel;
import com.pug.pojo.UserFavHotel;
import com.pug.vo.UserHotelFavVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Repository;

/**
 * @author 飞哥
 * @Title: 学相伴出品
 * @Description: 飞哥B站地址：https://space.bilibili.com/490711252
 * 记得关注和三连哦！
 * @Description: 我们有一个学习网站：https://www.kuangstudy.com
 * @date 2022/4/26$ 20:49$
 */
@Mapper
@Repository
public interface UserFavHotelMapper extends BaseMapper<UserFavHotel> {
    //用户收藏酒店
    public boolean savaUserFavHotel(@Param("userHotelFavVo") UserHotelFavVo userHotelFavVo);
    //用户取消收藏酒店
    boolean removeUserFavHotel(@Param("userHotelFavVo") UserHotelFavVo userHotelFavVo);
    public Page<Hotel> findUserFavHotelsPage(Page page, @Param("wrapper")QueryWrapper<Hotel> queryWrapper);
}
